<% #endcoding:utf-8%>
<%=render partial: "shared/path_nav",locals:{:@paths=>[{name:'首页',url:'/'},{name:'问答',url:'/questions'},{name:'提问'}]}%>
<div class="panel">
  <div class="panel-heading">提问</div>
  <div class="panel-body">
    <%=form_for @question do |f|%>
    <div class="form-group">
      <%=f.label :标题%>
      <%=f.text_field :title ,:class=>'form-control'%>

    </div>
    <div class="form-group">
      <%=f.label :问题描述%>
      <%= f.kindeditor :content, :simple_mode => true %>
    </div>
    <div class="form-group" style="position:relative">
        <%=f.label :'问题标签:'%><br>
        <%=f.text_field :tag_id,:size=>'20',:class=>'tag-id',:onkeyup=>'tagkeyup(this)'%>
        <ul class="list-group tag-hint"></ul>
    </div>
        <%=f.hidden_field :user_id,value:session[:user_id]%>
        <%=f.submit '提交',class:'btn btn-warning btn-block'%>
    <%end%>
  </div>
</div>
